<?php

use Illuminate\Support\Facades\Route;
use Yansongda\LaravelPay\Facades\Pay;

Route::view('/', 'welcome');

Route::view('dashboard', 'dashboard')->middleware(['auth', 'verified'])->name('dashboard');
Route::view('profile', 'profile')->middleware(['auth'])->name('profile');
Route::get('/alipay', function(){
    $order = [
        'out_trade_no' => time(),
        'total_amount' => '1',
        'subject' => 'test subject - 测试',
    ];
    return Pay::alipay()->web($order);
});

require __DIR__.'/auth.php';
